package com.ql.gamelogm.controller;

import com.ql.gamelogm.entities.Manager;
import com.ql.gamelogm.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@RestController
public class FindMessageController {
    @Autowired
    private ManagerService managerService;
    /*查询所有管理员信息*/
    @RequestMapping(value = "/findAllManagers")
    @ResponseBody
    public ModelAndView getAllManagers(Manager manager, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse){
        ModelAndView modelAndView = new ModelAndView();
        try{
            List<Manager> list = managerService.findAllManager();

        }catch (Exception e){
            e.printStackTrace();
        }
        return modelAndView;
    }
}
